package indi.cyh.fastservice.base;

import indi.cyh.fastservice.base.request.*;

/**
 * @Description TODO
 * @Author CYH
 * @Date 2021/7/22 10:34
 **/
public interface BaseBiz {


    /**
     * 保存数据
     *
     * @param request
     * @return indi.cyh.fastservice.base.entity.Object
     * @author CYH
     * @date 2021/7/20 18:52
     **/
    boolean save(BaseSaveRequest request) throws Exception;

    /**
     * 删除
     *
     * @param request
     * @return indi.cyh.fastservice.base.entity.Object
     * @author CYH
     * @date 2021/7/20 18:53
     **/
    boolean delete(BaseDeleteRequest request) throws Exception;

    /**
     * 查询分页数据
     *
     * @return indi.cyh.fastservice.base.entity.Object
     * @author CYH
     * @date 2021/7/20 18:56
     **/
    Object queryPageData(BaseQueryPageDataRequest request) throws Exception;

    /**
     * 查询单个实体类型
     *
     * @param request 查询条件
     * @return indi.cyh.fastservice.base.entity.Object
     * @author CYH
     * @date 2021/7/20 18:55
     **/
    Object queryOne(BaseQueryOneRequest request) throws Exception;

    /**
     * 查询多个实体类型
     *
     * @param request 查询条件
     * @return indi.cyh.fastservice.base.entity.Object
     * @author CYH
     * @date 2021/7/20 18:55
     **/
    Object queryList(BaseQueryListRequest request) throws Exception;
}
